package cn.flymod.DHG_mcpePlusEX;

import android.app.*;
import android.content.*;
import android.net.*;
import android.os.*;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class Home extends Activity
{
    /** Called when the activity is first created. */
    @Override
	
	Button homeButton1,homeButton2,homeButton3,homeButton4,homeButton5,homeButton6,homeButton7,homeButton8,homeButton9,homeButton10,homeButton11;
    public void onCreate(Bundle savedInstanceState)
	{
        super.onCreate(savedInstanceState);
        setContentView(R.layout.home);
		homeButton1=(Button)findViewById(R.id.homeButton1);
		homeButton2=(Button)findViewById(R.id.homeButton2);
		homeButton3=(Button)findViewById(R.id.homeButton3);
		homeButton4=(Button)findViewById(R.id.homeButton4);
		homeButton5=(Button)findViewById(R.id.homeButton5);
		homeButton6=(Button)findViewById(R.id.homeButton6);
		homeButton7=(Button)findViewById(R.id.homeButton7);
		homeButton8=(Button)findViewById(R.id.homeButton8);
		homeButton9=(Button)findViewById(R.id.homeButton9);
		homeButton10=(Button)findViewById(R.id.homeButton10);
		homeButton11=(Button)findViewById(R.id.homeButton11);
		
		homeButton1.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_mcpe.class);
					startActivity(intent);
				}
	    	});
		homeButton2.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_bl.class);
					startActivity(intent);
				}
	    	});
		homeButton3.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_pie.class);
					startActivity(intent);
				}
	    	});
		homeButton4.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_modpe.class);
					startActivity(intent);
				}
	    	});
		homeButton5.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_skineditor.class);
					startActivity(intent);
				}
	    	});
		homeButton6.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_texture.class);
					startActivity(intent);
				}
	    	});
		homeButton7.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_data.class);
					startActivity(intent);
				}
	    	});
		
		homeButton8.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_idviewer.class);
					startActivity(intent);
				}
	    	});
		homeButton9.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_minepix.class);
					startActivity(intent);
				}
	    	});
		homeButton10.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_circle.class);
					startActivity(intent);
				}
	    	});
		homeButton11.setOnClickListener(new OnClickListener(){
				public void onClick(View v) {
					Intent intent = new Intent();
					intent.setClass(Home.this,a_more.class);
					startActivity(intent);
				}
	    	});
	}
	
	public boolean onKeyDown(int keyCode,KeyEvent event)
	{
		if(keyCode==KeyEvent.KEYCODE_MENU)
		{
			//菜单键
			Intent intent = new Intent();
			intent.setClass(Home.this,about.class);
			this.startActivity(intent);
		}
		return super.onKeyDown(keyCode,event);

	}
}
